﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="ProductDetail.aspx.cs" Inherits="ProjectSem3.Admin.WebForm7" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentTabs" runat="server">
  <ul>
        <li><a href="stock.aspx" class="current"><span>Stock</span></a></li>
       
    </ul>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPage" runat="server">
    <div class="grid_9">
        <h1 class="dashboard">
            Product
        </h1>
    </div>
    <!--Product information -->
    <div class="grid_15" id="textcontent">
        <h2>
            Information</h2>
    </div>
    <div class="portlet">
        <div class="portlet-content nopadding">
            <table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" summary="Employee Pay Sheet">
                <tr>
                    <th>
                        product ID:
                    </th>
                    <td style="width: 25%">
                        <label id='lblproductID'>
                            <%=pr.ProductID %>
                        </label>
                    </td>
                    <th>
                        Name:
                    </th>
                    <td style="width: 25%">
                        <asp:Label ID="lblProductName" runat="server"><%=pr.Name %></asp:Label>
                    </td>
                </tr>
                <tr>
                    <th>
                        Supplier:
                    </th>
                    <td>
                        <asp:Label ID="lblSupplier" runat="server"><%=pr.Supplier.Name %></asp:Label>
                    </td>
                    <th>
                        Category:
                    </th>
                    <td>
                        <asp:Label ID="lblCategory" runat="server"><%=pr.Category.Name %></asp:Label>
                    </td>
                </tr>
                <tr>
                    <th>
                        Price:
                    </th>
                    <td>
                        <asp:Label ID="lblPrice" runat="server"><%=pr.Price %></asp:Label>
                    </td>
                    <th>
                        Warranty:
                    </th>
                    <td>
                        <asp:Label ID="lblWarranty" runat="server"><%= pr.Warranty %></asp:Label>
                    </td>
                </tr>
                <tr>
                    <th>
                        Status:
                    </th>
                    <td>
                        <asp:Label ID="lblStatus" runat="server"><%= (pr.Status==true?"enable":"disable") %></asp:Label>
                    </td>
                    <th>
                        DateUpdate:
                    </th>
                    <td>
                        <asp:Label ID="lblDateUpdate" runat="server"><%=pr.DateUpdate %></asp:Label>
                    </td>
                </tr>
                <tr>
                    <th>
                        Description:
                    </th>
                    <td>
                        <asp:Label ID="lblDescription" runat="server"><%=pr.Description %></asp:Label>
                    </td>
                    <th>
                        View:
                    </th>
                    <td>
                        <asp:Label ID="lblView" runat="server"><%=pr.View %></asp:Label>
                    </td>
                </tr>
                <tr>
                    <th>
                        Images:
                    </th>
                    <td colspan="3">
                        <div id="divImgs" runat="server">
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <!--Product in stockdetail -->
    <div class="grid_15">
        <h2>
            Stockdetails</h2>
    </div>
    <div id="liststockd">
    </div>
    <asp:ListView ID="ListView1" runat="server">
        <LayoutTemplate>
            <div class="portlet">
                <div class="portlet-content nopadding">
                    <table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" summary="Employee Pay Sheet">
                        <thead>
                            <tr>
                                <th style="width:40%">
                                    Date
                                </th>
                                <th style="width:30%">
                                    Import
                                </th>
                                <th style="width:30%">
                                    Export
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <placeholder id="itemPlaceholder" runat="server"></placeholder>
                        </tbody>
                    </table>
                </div>
            </div>
        </LayoutTemplate>
        <ItemTemplate>
            <tr><td><%#Eval("Date") %></td>
                <td>
                    <%# Eval("Import") %>
                </td>
                <td>
                    <%#Eval("Export") %>
                </td>
            </tr>
        </ItemTemplate>
    </asp:ListView>
    <script type="text/javascript">

        $('div #content').css('padding', '0px');
      
    </script>
</asp:Content>
